package com.ete.service.manager.hardware

import com.ete.service.entry.hardware.HardwareEntry
import com.ete.service.entry.hardware.SlaveEntry
import com.ete.service.service.hardware.UploadHardwareUtil

/**
 * Author:LiXian
 * <p>
 * Desc:硬件上报
 * Version:1.0
 * date 2024/1/18 11:21
 */
object HardwareManager {

    const val TAG = "HardwareManager"

    /**
     * 初始化
     */
    @JvmStatic
    fun init(mHardwareEntry: HardwareEntry) {
        UploadHardwareUtil.init(mHardwareEntry)
    }

    /**
     * 添加单机设备
     */
    @JvmStatic
    fun addSalveDevice(mEntry: SlaveEntry) {
        UploadHardwareUtil.addSalveDevice(mEntry)
    }

    /**
     * 添加单机设备列表
     */
    @JvmStatic
    fun addSalveDeviceList(mEntries: List<SlaveEntry>) {
        UploadHardwareUtil.addSalveDeviceList(mEntries)
    }

    /**
     * 上报硬件信息
     */
    @JvmStatic
    fun startUploadHardwareInfo() {
        UploadHardwareUtil.startUploadHardwareInfo()
    }

    /**
     * 停止上报硬件信息
     */
    @JvmStatic
    fun stopUploadHardwareInfo() {
        UploadHardwareUtil.stopUploadHardwareInfo()
    }
}